/**
 * Created by zheng on 2018/12/16.
 */

import * as types from '../constants/ActionTypes'

export const logout = () => ({type: types.LOGOUT})
export const login = (user) => ({
	types: ['LOGIN', 'LOGIN_SUCCESS', 'LOGIN_FAIL'],
	// type: types.LOGIN, user:user
	payload: {
		request:{
			method: 'GET',
			url: '/testdata.json',
			data: {
				...user
			}
		}
	}
})
